dimanche 29 mars 2015

translate g++ code to clion environment

I am new in clion. on gcc i always use:



g++ bin/obj/main.o -o bin/main -lboost_filesystem -lboost_system -lcrypto


How to do it in clion?


It seems my CMakeList does not work:



cmake_minimum_required(VERSION 3.1)
project(motion_simulation)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp)
add_executable(motion_simulation ${SOURCE_FILES})
link_libraries(lboost_filesystem)
link_libraries(lboost_system)
link_libraries(lcrypto)

Aucun commentaire:

Enregistrer un commentaire