start moving to another architecture

This commit is contained in:
arcan1s
2014-01-26 03:49:43 +04:00
parent 473d195ea9
commit 7c874ca96d
170 changed files with 3170 additions and 14746 deletions

View File

@ -0,0 +1,21 @@
# 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 "${PROJECT} SOURCES: ${SOURCES}")
message (STATUS "${PROJECT} HEADERS: ${HEADERS}")
# link libraries and compile
add_executable (${MM_PREFIX}${PROJECT} ${SOURCES} ${HEADERS})
target_link_libraries (${MM_PREFIX}${PROJECT} ${ADDITIONAL_LIB} ${LIBRARIES})
# install properties
install (TARGETS ${MM_PREFIX}${PROJECT} DESTINATION bin)