|
Well, nevermind. After hours of no results I now randomly stumbled upon the solution.
and then select the LXDE option...
2
#1.cmake version
2 cmake_minimum_required(VERSION 3.2)
3
4 #2.project name
5 PROJECT(talk_ref)
6
7 #3.head file path
8 INCLUDE_DIRECTORIES(
9 include
10 )
11
12 #4.source directory
13 AUX_SOURCE_DIRECTORY(. DIR_SRCS)
14
15 #5.set enviroment varible
16 SET(CMAKE_C_COMPILER g++)
17 SET( TEST_MATH ${DIR_SRCS})
18 SET(CMAKE_BUILD_TYPE "Debug")
19 SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
20 SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
21 add_compile_options(-std=c++11)
22
23 #6.add excuteable
24 ADD_EXECUTABLE(${PROJECT_NAME} ${TEST_MATH})
25
26 #7.add link library
27 TARGET_LINK_LIBRARIES(${PROJECT_NAME} m pthread)