工作代码片段-cmake

顶层目录结构CMakeLists.txt
project(khfep)
cmake_minimum_required(VERSION 2.6)
set(PRO_DIR ${PROJECT_SOURCE_DIR}/../../)
set(LIBRARY_OUTPUT_PATH ${PRO_DIR}/lib/fep)
set(EXECUTABLE_OUTPUT_PATH ${PRO_DIR}/bin/fep)

include_directories(platform/include)
add_subdirectory(platform)
add_subdirectory(test)
测试目录CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
find_library(pla platform ../../../lib/fep)
find_package(CppUnit)
include_directories(${CPPUNIT_INCLUDE_DIR})
add_executable(test test.cpp TestMain.cpp BaseTest.cpp)
#find_package(Qt4)
#include(${QT_USE_FILE})
target_link_libraries(test dl)
target_link_libraries(test platform)
target_link_libraries(test ${CPPUNIT_LIBRARIES})
target_link_libraries(test event)
target_link_libraries(test pthread)
#target_link_libraries(test ${QT_LIBRARIES}


你可能感兴趣的:(工作,qt,Path,include,library,output)