diff options
-rw-r--r-- | examples/CMakeLists.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index d1511b2..0430e9f 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -12,16 +12,11 @@ set( SDL_TARGETS_IDIOMATIC_FILES "" ) foreach( name ${BASENAMES_IDIOMATIC_TARGETS} ) set(target ${name}) set( SDL_TARGETS_IDIOMATIC_TARGETS "${SDL_TARGETS_IDIOMATIC_TARGETS};${target}" ) - # add_executable(${target} ${target}.cpp ../src/pixel.cpp ../src/sdl_subsys.cpp) add_executable(${target} ${name}.cpp) target_link_libraries(${target} ${SDL2_LIBS} ${CMAKE_THREAD_LIBS_INIT}) if (DEFINED EMSCRIPTEN) configure_file(${name}.html ${name}.html COPYONLY) set( SDL_TARGETS_IDIOMATIC_FILES "${SDL_TARGETS_IDIOMATIC_FILES};${CMAKE_CURRENT_BINARY_DIR}/${name}.wasm;${name}.html" ) - # set_target_properties(${target} PROPERTIES COMPILE_FLAGS "-Os -s SIDE_MODULE=1 ") - # set_target_properties(${target} PROPERTIES LINK_FLAGS "-Os -s WASM=1 -s SIDE_MODULE=1 -s STANDALONE_WASM --no-entry") - # set_target_properties(${target} PROPERTIES COMPILE_FLAGS "-s USE_SDL=2") - # set_target_properties(${target} PROPERTIES LINK_FLAGS "-s USE_SDL=2") endif() endforeach() |