mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-17 07:40:00 +00:00
start moving to another architecture
This commit is contained in:
@ -1,9 +1,3 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
cmake_policy (SET CMP0003 OLD)
|
||||
cmake_policy (SET CMP0011 NEW)
|
||||
cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
# set project name
|
||||
set (PROJECT mathmech)
|
||||
# set additional cmake file
|
||||
@ -11,18 +5,13 @@ include (${PROJECT}.cmake)
|
||||
|
||||
|
||||
# additional options
|
||||
OPTION (WITH_DEBUG_MODE "Build with debug mode" OFF)
|
||||
option (WITH_DEBUG_MODE "Build with debug mode" OFF)
|
||||
|
||||
# set libraries
|
||||
set (LIBRARIES)
|
||||
foreach (LIBRARY ${LIBRARIES})
|
||||
find_library ("${LIBRARY}_FOUND" ${LIBRARY})
|
||||
message (STATUS "Check the ${LIBRARY} is installed: " ${${LIBRARY}_FOUND})
|
||||
if ("${${LIBRARY}_FOUND}" STREQUAL "${LIBRARY}_FOUND-NOTFOUND")
|
||||
message (STATUS "Adding library sources")
|
||||
add_subdirectory (../${LIBRARY} lib/${LIBRARY})
|
||||
endif ()
|
||||
endforeach ()
|
||||
set (LIBRARIES "")
|
||||
foreach (LIBRARY ${LIBRARIES})
|
||||
add_subdirectory (../${LIBRARY} lib/${LIBRARY})
|
||||
endforeach ()
|
||||
|
||||
# additional targets
|
||||
set (TARGETS "")
|
||||
|
@ -63,10 +63,7 @@ target_link_libraries (${PROJECT} ${LIBRARIES} ${QT_LIBRARIES} ${QT_QTMAIN_LIBRA
|
||||
# install properties
|
||||
install (TARGETS ${PROJECT} DESTINATION bin)
|
||||
if (CMAKE_SYSTEM_NAME MATCHES Linux)
|
||||
install (FILES ../mathmech.desktop
|
||||
DESTINATION share/applications/)
|
||||
install (FILES ../mathmech-logo.png
|
||||
DESTINATION share/pixmaps/)
|
||||
install (FILES ../mathmech.png
|
||||
DESTINATION share/icons/hicolor/32x32/apps/)
|
||||
install (FILES ../mathmech.desktop DESTINATION share/applications/)
|
||||
install (FILES ../mathmech-logo.png DESTINATION share/pixmaps/)
|
||||
install (FILES ../mathmech.png DESTINATION share/icons/hicolor/32x32/apps/)
|
||||
endif ()
|
||||
|
Reference in New Issue
Block a user