mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
client
add wasm options
This commit is contained in:
+10
-8
@@ -7,12 +7,10 @@ add_subdirectory(qwt)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
file(GLOB_RECURSE ui "ui/*.[hc]pp")
|
||||
file(GLOB_RECURSE ui_ui "ui/*.ui")
|
||||
file(GLOB_RECURSE ui "ui/*")
|
||||
|
||||
set(PROJECT_SOURCES
|
||||
${ui}
|
||||
${ui_ui}
|
||||
helpers.cpp
|
||||
helpers.hpp
|
||||
IterableEnum.hpp
|
||||
@@ -29,10 +27,10 @@ set(PROJECT_SOURCES
|
||||
web_socket_wrapper.hpp
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE sims "simulators/*.cpp")
|
||||
|
||||
# Loop through each .cpp file and create a library for it
|
||||
foreach(sim ${sims})
|
||||
if (NOT EMSCRIPTEN)
|
||||
file(GLOB_RECURSE sims "simulators/*.cpp")
|
||||
# Loop through each .cpp file and create a library for it
|
||||
foreach(sim ${sims})
|
||||
# Extract the base name of the file (without the directory and extension)
|
||||
get_filename_component(LIB_NAME ${sim} NAME_WE)
|
||||
|
||||
@@ -48,12 +46,16 @@ foreach(sim ${sims})
|
||||
AUTOMOC ON
|
||||
AUTORCC ON
|
||||
)
|
||||
endforeach()
|
||||
endforeach()
|
||||
else()
|
||||
file(GLOB_RECURSE sims "simulators/*")
|
||||
endif()
|
||||
|
||||
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
||||
qt_add_executable(Simulator-CVS_I10
|
||||
MANUAL_FINALIZATION
|
||||
${PROJECT_SOURCES}
|
||||
$<$<BOOL:${EMSCRIPTEN}>:${sims}>
|
||||
)
|
||||
# Define target properties for Android with Qt 6 as:
|
||||
# set_property(TARGET Simulator - CVS_I10 APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
|
||||
|
||||
Reference in New Issue
Block a user