Files
moldyn/mathmech/radf/src/CMakeLists.txt
arcan1s 38eb392e32 + added dependecies
+ added oxygen docs building
+ added versioning
* some optimization
2014-01-26 06:17:14 +04:00

23 lines
603 B
CMake

# set files
file (GLOB SOURCES *.c)
file (GLOB HEADERS *.h)
# set library
if (CMAKE_COMPILER_IS_GNUCXX)
set (ADDITIONAL_LIB m)
else ()
set (ADDITIONAL_LIB)
endif ()
# message
message (STATUS "${SUBPROJECT} SOURCES: ${SOURCES}")
message (STATUS "${SUBPROJECT} HEADERS: ${HEADERS}")
# link libraries and compile
add_executable (${MM_PREFIX}${SUBPROJECT} ${SOURCES} ${HEADERS})
add_dependencies (${MM_PREFIX}${SUBPROJECT} ${LIBRARIES})
target_link_libraries (${MM_PREFIX}${SUBPROJECT} ${ADDITIONAL_LIB} ${LIBRARIES})
# install properties
install (TARGETS ${MM_PREFIX}${SUBPROJECT} DESTINATION bin)