2025-04-05 14:21:11 +00:00
|
|
|
|
# CMakeList.txt : CMake project for core_as, include source and define
|
|
|
|
|
|
# project specific logic here.
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(testStr test_str.cpp)
|
2025-11-13 14:57:42 +00:00
|
|
|
|
|
2025-11-15 10:07:52 +00:00
|
|
|
|
target_link_libraries(testStr simstr::simstr GTest::gtest_main)
|
2025-11-13 14:57:42 +00:00
|
|
|
|
|
2025-04-05 14:21:11 +00:00
|
|
|
|
add_test(NAME testStr COMMAND testStr)
|
|
|
|
|
|
|
|
|
|
|
|
if (EMSCRIPTEN)
|
|
|
|
|
|
set_target_properties (testStr PROPERTIES SUFFIX .html)
|
2025-11-13 14:57:42 +00:00
|
|
|
|
target_compile_options(testStr PUBLIC -Wno-warn-absolute-paths -Wno-unknown-warning-option -msimd128 -msse4.2 -msse3)
|
|
|
|
|
|
if(SIMSTR_EMSCRIPTEN_MT)
|
|
|
|
|
|
target_compile_options(testStr PUBLIC -pthread)
|
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread -sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency-1")
|
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sENVIRONMENT=web,worker")
|
|
|
|
|
|
endif()
|
2025-04-05 14:21:11 +00:00
|
|
|
|
endif(EMSCRIPTEN)
|