Transfer from Jam to CMake

I understand that Jam creates existing projects, and CMake generates projects for assembly. But, given that I would rather generate projects that I could use in various IDEs rather than trying to integrate Jam into those IDEs, does anyone have any experience / success in converting Jamfile to CMakeLists.txt?

+5
source share
3 answers

So, in the end, I decided it was best to start the CMAKE project from scratch. Our Jam project was such a mess, I didn’t want to endure the crash of our spaghetti assembly.

I found these resources most useful.

http://www.cmake.org/Wiki/CMake_Useful_Variables http://www.cmake.org/cmake/help/v2.8.10/cmake.html

0
source

Jam Linux, , make . CMake . CMakeLists.txt, Jamfiles, IDE , IDE , -, .

, , Jam , . , , , , , .

, Jamfiles CMakeLists.txt, , , . , Jam , , CMake, - , .: (

, Jamfile CMakeLists.txt. , , , .

:

  • HDRS += a.h b.h c.h ; include_directories(a.h b.h c.h)
  • Main HelloWorld : main.cpp utils.cpp ; add_executable(HelloWorld main.cpp utils.cpp utils.h)
  • Library helper : helper.cpp add_library(helper STATIC helper.cpp helper.h)
  • SubDir foo ; add_subdirectory(foo)
  • LinkLibraries HelloWorld : libhelper ; target_link_libraries(HelloWorld helper)

IDE, CMake, , . , .

+4

Jam CMake vcproj2cmake Jam- ( CMake ).

+1

All Articles