Skip to content

Commit e270125

Browse files
committed
State for v0.1.0
1 parent b8577ff commit e270125

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

CMakeLists.txt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
cmake_minimum_required(VERSION "3.12")
22

3-
project("spackexample" VERSION 0.3.0)
3+
project("spackexample" VERSION 0.1.0)
44

5-
find_package(Boost
6-
1.65.1
7-
REQUIRED
8-
filesystem
9-
)
5+
# find_package(Boost
6+
# 1.65.1
7+
# REQUIRED
8+
# filesystem
9+
# )
1010

11-
find_package(yaml-cpp
12-
0.7.0
13-
REQUIRED
14-
)
11+
# find_package(yaml-cpp
12+
# 0.7.0
13+
# REQUIRED
14+
# )
1515

1616
add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp yamlParser/yamlParser.cpp)
1717

18-
set_target_properties(spackexamplelib
19-
PROPERTIES
20-
PUBLIC_HEADER filesystem/filesystem.hpp
21-
PUBLIC_HEADER flatset/flatset.hpp
22-
PUBLIC_HEADER yamlParser/yamlParser.hpp
23-
)
18+
# set_target_properties(spackexamplelib
19+
# PROPERTIES
20+
# PUBLIC_HEADER filesystem/filesystem.hpp
21+
# PUBLIC_HEADER flatset/flatset.hpp
22+
# PUBLIC_HEADER yamlParser/yamlParser.hpp
23+
# )
2424

25-
include_directories(${YAML_CPP_INCLUDE_DIR})
25+
# include_directories(${YAML_CPP_INCLUDE_DIR})
2626

2727
add_executable(spackexample main.cpp)
28-
target_link_libraries(spackexample spackexamplelib)
29-
target_link_libraries(spackexamplelib Boost::filesystem yaml-cpp)
30-
31-
target_include_directories(spackexamplelib
32-
PRIVATE
33-
${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
34-
PUBLIC
35-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
36-
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
37-
)
28+
# target_link_libraries(spackexample spackexamplelib)
29+
# target_link_libraries(spackexamplelib Boost::filesystem yaml-cpp)
30+
31+
# target_include_directories(spackexamplelib
32+
# PRIVATE
33+
# ${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
34+
# PUBLIC
35+
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
36+
# $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
37+
# )
3838

3939
# Create install targets
4040
include(GNUInstallDirs)

main.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
#include "flatset/flatset.hpp"
2-
#include "filesystem/filesystem.hpp"
3-
#include "yamlParser/yamlParser.hpp"
1+
//#include "flatset/flatset.hpp"
2+
//#include "filesystem/filesystem.hpp"
3+
//#include "yamlParser/yamlParser.hpp"
44
#include <iostream>
55

66
int main(int argc, char *argv[])
77
{
88
std::cout << "Let's fight with CMake, Docker, and some dependencies!" << std::endl << std::endl;
99

10-
std::cout << "Modify a flat set using boost container" << std::endl;
11-
modifyAndPrintSets();
12-
std::cout << std::endl;
10+
// std::cout << "Modify a flat set using boost container" << std::endl;
11+
// modifyAndPrintSets();
12+
// std::cout << std::endl;
1313

14-
std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15-
inspectDirectory();
16-
std::cout << std::endl;
14+
// std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15+
// inspectDirectory();
16+
// std::cout << std::endl;
1717

18-
if ( argc == 2 )
19-
{
20-
const std::string yamlFile( argv[1] );
21-
std::cout << "Parse some yaml file with yaml-cpp" << std::endl;
22-
std::cout << " " << yamlFile << std::endl;
23-
parseConfig( yamlFile );
24-
}
18+
// if ( argc == 2 )
19+
// {
20+
// const std::string yamlFile( argv[1] );
21+
// std::cout << "Parse some yaml file with yaml-cpp" << std::endl;
22+
// std::cout << " " << yamlFile << std::endl;
23+
// parseConfig( yamlFile );
24+
// }
2525

2626
return 0;
2727
}

0 commit comments

Comments
 (0)