include_directories(${CMAKE_CURRENT_LIST_DIR})
+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+
set(ENTITYX_BUILD_TESTING true CACHE BOOL "Enable building of tests.")
set(ENTITYX_RUN_BENCHMARKS false CACHE BOOL "Run benchmarks (in conjunction with -DENTITYX_BUILD_TESTING=1).")
set(ENTITYX_MAX_COMPONENTS 64 CACHE STRING "Set the maximum number of components.")
entityx
${ARGN}
)
+ set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "entityx/tests")
add_test(${TARGET_NAME} ${TARGET_NAME})
endmacro()
set(sources entityx/System.cc entityx/Event.cc entityx/Entity.cc entityx/help/Timer.cc entityx/help/Pool.cc)
add_library(entityx STATIC ${sources})
-set_target_properties(entityx PROPERTIES DEBUG_POSTFIX -d)
+set_target_properties(entityx PROPERTIES DEBUG_POSTFIX -d FOLDER entityx)
if (ENTITYX_BUILD_SHARED)
message("-- Building shared libraries (-DENTITYX_BUILD_SHARED=0 to only build static librarires)")
OUTPUT_NAME entityx
DEBUG_POSTFIX -d
VERSION ${ENTITYX_VERSION}
- SOVERSION ${ENTITYX_MAJOR_VERSION})
+ SOVERSION ${ENTITYX_MAJOR_VERSION}
+ FOLDER entityx)
list(APPEND install_libs entityx_shared)
endif (ENTITYX_BUILD_SHARED)