diff --git a/src/Lib/Array/CMakeLists.txt b/src/Lib/Array/CMakeLists.txt index 9eb1c105..869a607f 100644 --- a/src/Lib/Array/CMakeLists.txt +++ b/src/Lib/Array/CMakeLists.txt @@ -1,7 +1,14 @@ +# array library, and test_array app add_library(Array STATIC array.cxx array.hxx ) +install( TARGETS Array + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + ) +install( FILES array.hxx DESTINATION include/tg ) add_executable(test_array testarray.cxx) @@ -12,3 +19,6 @@ target_link_libraries(test_array ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}) install(TARGETS test_array RUNTIME DESTINATION bin) +if (MSVC) + set_target_properties( test_array PROPERTIES DEBUG_POSTFIX d ) +endif ()