|
@@ -4,6 +4,8 @@ project(demo)
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
find_package(lagui REQUIRED)
|
|
find_package(lagui REQUIRED)
|
|
|
|
+find_package(PNG REQUIRED)
|
|
|
|
+find_package(LuaJIT)
|
|
|
|
|
|
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
|
|
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
|
|
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
|
|
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
|
|
@@ -63,6 +65,22 @@ endif()
|
|
|
|
|
|
target_link_libraries(example_viewer ${LAGUI_SHARED_LIBS} )
|
|
target_link_libraries(example_viewer ${LAGUI_SHARED_LIBS} )
|
|
|
|
|
|
|
|
+
|
|
|
|
+message("${LAGUI_SHARED_LIBS}")
|
|
|
|
+
|
|
|
|
+target_link_options(simplest PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(operator PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(simple_properties PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(widgets PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(widget_flags PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(fruits PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(modelling_main PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(calculator PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(nvgtest PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(luajit PUBLIC "-Wl,--start-group")
|
|
|
|
+target_link_options(example_viewer PUBLIC "-Wl,--start-group")
|
|
|
|
+
|
|
|
|
+
|
|
get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
if(GENERATOR_IS_MULTI_CONFIG)
|
|
if(GENERATOR_IS_MULTI_CONFIG)
|
|
set(INSTALL_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>)
|
|
set(INSTALL_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>)
|