mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-16 07:10:00 +00:00
22 lines
485 B
CMake
22 lines
485 B
CMake
# set files
|
|
aux_source_directory (. SOURCES)
|
|
|
|
# set library
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
set (ADDITIONAL_LIB m)
|
|
else ()
|
|
set (ADDITIONAL_LIB)
|
|
endif()
|
|
|
|
# message
|
|
message (STATUS "SOURCES: ${SOURCES}")
|
|
|
|
# link libraries and compile
|
|
add_executable (${PROJECT} ${SOURCES})
|
|
target_link_libraries (${PROJECT} ${ADDITIONAL_LIB})
|
|
|
|
# install properties
|
|
INSTALL (TARGETS ${PROJECT} DESTINATION bin)
|
|
if (ADD_INCLUDE)
|
|
INSTALL (FILES ${PUBLIC_HEADERS} DESTINATION include/${PROJECT})
|
|
endif () |