Skip to content

Commit

Permalink
add platform define for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lionkor committed Jan 25, 2024
1 parent 1070584 commit 0eec0fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ if(${PROJECT_NAME}_ENABLE_UNIT_TESTING)
target_compile_features(${PROJECT_NAME}-tests PRIVATE ${PRJ_COMPILE_FEATURES})
target_compile_definitions(${PROJECT_NAME}-tests PRIVATE ${PRJ_DEFINITIONS} ${PRJ_WARNINGS})
set_project_warnings(${PROJECT_NAME}-tests)
if (WIN32)
target_compile_definitions(${PROJECT_NAME}-tests PRIVATE -DPLATFORM_WINDOWS=1)
else ()
target_compile_definitions(${PROJECT_NAME}-tests PRIVATE -DPLATFORM_LINUX=1)
endif ()
endif()


0 comments on commit 0eec0fd

Please sign in to comment.