fix bugs abuout \rm and \add
[FreeRecite.git] / src / CMakeLists.txt
blobd933b0181bcd1052d24aa6c2b68ff1e6a257ef95
1 # Recurse into the "core" and "ui" subdirectories.
2 ADD_SUBDIRECTORY(core)
3 ADD_SUBDIRECTORY(ui)
5 # Make sure the compiler can find include files from our ui library.
6 INCLUDE_DIRECTORIES(${FREERECITE_SOURCE_DIR}/src/ui)
8 # Make sure the linker can find the ui library once it is built.
9 LINK_DIRECTORIES(${FREERECITE_BINARY_DIR}/src/ui)
11 # Make sure the compiler can find include files from our ui library.
12 INCLUDE_DIRECTORIES(${FREERECITE_SOURCE_DIR}/src/core)
14 # Make sure the linker can find the ui library once it is built.
15 LINK_DIRECTORIES(${FREERECITE_BINARY_DIR}/src/core)
17 MESSAGE(STATUS "This is BINARY dir " ${FREERECITE_BINARY_DIR})
18 MESSAGE(STATUS "This is SOURCE dir " ${FREERECITE_SOURCE_DIR})
20 ADD_EXECUTABLE(FreeRecite-core main.cpp)
21 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
22 TARGET_LINK_LIBRARIES(FreeRecite-core FreeReciteUi)
23 TARGET_LINK_LIBRARIES(FreeRecite-core FreeReciteCore)
25 INSTALL(PROGRAMS FreeRecite DESTINATION bin)
27 INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/bin/FreeRecite-core DESTINATION bin)